using System;
using System.Collections.Generic;
using System.Text;

namespace EBookReader.Library
{
    public class Text
    {
        public static string HTMLDecode(string s)
        {
            StringBuilder sb = new StringBuilder(s);
            sb.Replace("<br/>", "\r\n");
            sb.Replace("<br />", "\r\n");
            sb.Replace("<br>", "\r\n");
            sb.Replace("<p>", "\r\n");
            sb.Replace("<p />", "\r\n");
            sb.Replace("<p/>", "\r\n");
            sb.Replace("&nbsp;", " ");
            return sb.ToString();
        }
    }
}
